{extend name="base" /}
{block name="body"}
<!--分类-->
<div class="container">
    {category_list is_home="1"}
    <div class="panel panel-default">
        <div class="panel-heading">
            <h4 class="panel-title">
                <a data-toggle="collapse" data-parent="#accordion" href="#collapseOne_{$key}" aria-expanded="true" aria-controls="collapseOne_{$key}" class="collapsed">{$category.name}<span style="float: right">+展开</span> </a>
            </h4>
        </div>
        <div id="collapseOne_{$key}" class="list-group panel-collapse collapse" role="tabpanel" style="height: 0;">
            {foreach $category['children'] as $index => $sub }
            <a href="{:url('/c-' . $category['id'] . '-' . $sub['id'])}" class="list-group-item pad10">{$sub.name}</a>
            {/foreach}
        </div>
    </div>
    {/category_list}
</div>
{/block}
